package com.djdg.foodies.common.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description:
 * @Auther Demon
 * @Date 2018/3/13 15:10 星期二
 */
@Getter
@Setter
@Entity
@DynamicInsert
@Table(name = "test")
public class Test extends BaseEntity {

    @Column(name = "name", columnDefinition = "VARCHAR(256) COMMENT '姓名'", nullable = false)
    private String name;

    @Column(name = "age", columnDefinition = "TINYINT COMMENT '年龄'")
    private Integer age;

}
